import request from '../utils/request'
// 搜索   联想菜单接口
export const suggestAPI = ({ q }) => {
  return request({
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })
}
// 获取搜索结果接口
export const searchResultAPI = ({ q, page = 1 }) => {
  return request({
    url: '/v1_0/search',
    params: {
      q: q,
      page
    }
  })
}
